package test.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import test.mp.domain.dto.PageDTO;
import test.mp.domain.po.User;
import test.mp.domain.query.UserQuery;
import test.mp.domain.vo.UserVO;

import java.util.List;

/**
 * @ClassName IUserService
 * @Description TODO
 * @Author wxx
 * @Date 2024/08/13/23:53
 * @Version 1.0
 */
public interface IUserService extends IService<User> {


    void deductBalance(String id, Integer money);

    List<User> queryUsers(UserQuery userQuery);

    UserVO queryUserAndAddressById(String id);

    List<UserVO> queryUserAndAddressByIds(List<String> ids);

    PageDTO<UserVO> queryUsersPage(UserQuery userQuery);
}
